package com.ossjk.oa.finance.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ossjk.core.vo.PagePreNextVo;
import com.ossjk.oa.finance.entity.Reimburse;
import com.ossjk.oa.finance.vo.ReimVo;
import com.ossjk.oa.system.entity.Employee;

/**
 * <p>
 * 报销 服务类
 * </p>
 *
 * @author chair
 * @since 2019-02-07
 */
public interface IReimburseService extends IService<Reimburse> {
	 
	PagePreNextVo selectPreNext(String midMth) ;
	
	Reimburse getReimburse(Reimburse reimburse);
	boolean updateDetail(Reimburse reimburse, String[] sname, String[] samount, String[] sisreceipt, String[] sremarks);

	boolean insert(Reimburse reimburse, String[] sname, String[] samount, String[] sisreceipt, String[] sremarks);
	
	List<ReimVo> selectMthVoCount( @Param("ew") Wrapper wrapper );
	
	Page  selectVoPage(Page page, Wrapper wrapper);
	
	PagePreNextVo selectPreOrNextByMth(String midMth );
	 
	List<ReimVo> selectMthReimVos(   Wrapper wrapper );
    List<ReimVo> selectVo( int type, Wrapper wrapper);
 
    boolean pay(Employee emp, Integer count, String mth,String descb,String cpttype);
    boolean pays(String eid[],   String mth, String cpttype);
}
